<script>
  const copy = async (text) => await navigator.clipboard.writeText(text);
  console.log(copy("2342342"));

  const arr = [23, 11, 55, 1, 36, 89, 2, 31, 2];
  arr.sort((a, b) => {
    return a - b;
  });
  arr.sort((a, b) => {
    return b - a;
  });

  const emptyObj = (obj) =>
    Reflect.ownKeys(obj).length === 0 && obj.constructor === Object;
  console.log({ a: 234 });

  const isWeekday = (date) => date.getDay() % 6 !== 0;
//   console.log(isWeekday(2023, 05, 04));

  const getSelection = () => window.getSelection().toString();

  const terminalType = () =>
    /Android|webOS|iPhone|iPad|BlackBerry|IEMobile|OperaMini/i.test(
      navigator.userAgent
    )
      ? "Mobile"
      : "PC";

  const randomHexColor = () => {
    `#${Math.floor(Math.random() * 0xfffff)
      .toString()
      .padEnd(6, "0")}`;
  };

  const isToday = (date) =>
    date.toISOString().slice(0, 10) === new Date().toISOString().slice(0, 10);
    console.log(isToday(new Date(2023,04,09)));
</script>
